<template>
    <bi-select v-model="value" ref="select">
        <bi-select-option v-for="item in list" :label="item.title" :value="item.value"  ></bi-select-option>
    </bi-select>
</template>

<script>
export default{
    dialog:{
        width:300,
        title:'登陆后跳转',
        loading:true
    },
    data(){
        return {
            value:'',
            list:[],
        }
    },
    methods:{
        dialogOk(){
            this.dialog.callback({label:this.$refs.select.getLabel(),value:this.value});
            return true;
        }
    },
    mounted(){
        this.$ajax({
            url:this.$url({app:'admin',controller:'setting',action:'getLoginDirect'}),
            success:(data)=>{
                this.dialog.loading = false;
                this.list = data;
            }
        });
    }
}
</script>